package org.amphiption.gametimer;

import org.amphiption.gametimer.entity.TimerConfiguration;
import org.amphiption.gametimer.screen.PlaySessionScreen;

import android.content.Intent;
import android.media.AudioManager;
import android.os.Bundle;
import android.view.WindowManager;

import com.amphiprion.prototype.GameActivity;

public class PlaySessionNG extends GameActivity {

	private TimerConfiguration tc;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		setVolumeControlStream(AudioManager.STREAM_MUSIC);
		getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
		Intent it = getIntent();
		tc = (TimerConfiguration) it.getSerializableExtra("TIMER_CONFIGURATION");

		super.onCreate(savedInstanceState);

		addScreen(new PlaySessionScreen(this, tc));
	}

	@Override
	protected int getReferenceWidth() {
		return 480;
	}

	@Override
	protected int getReferenceHeight() {
		return 800;
	}

	@Override
	protected void defineBitmapOptimizations() {
		// Nothing to do
	}

}
